<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Jialeo\LaravelSchemaExtend\Schema;

class AddWallTailUsedOldToOpenShopSiteLocationsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('open_shop_site_locations', function (Blueprint $table) {
            $table->unsignedTinyInteger('wallTileUsedOld')->comment('墙砖地砖装修是否利旧')->default(0);
            $table->unsignedTinyInteger('shopGrade')->comment('门店分级')->default(0);
            $table->string('doorHeadWidth', 7)->comment('门头宽（牌匾宽）')->default('');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('open_shop_site_locations', function (Blueprint $table) {
            $table->dropColumn('wallTileUsedOld');
            $table->dropColumn('shopGrade');
            $table->dropColumn('doorHeadWidth');
        });
    }
}
